import { request } from '@/utils'

export default {
  getDiseases: (params = {}) => request.post('admin/disease_list', params),
  getParentDepartments: (params = {}) => request.post('department/parent/page', params),
  getPostById: (id) => request.get(`/post/${id}`),
  addPost: (data) => request.post('/post', data),
  updateUser: (data) => request.post(`/user/update`, data),
  deleteUser: (id) => request.post(`/user/delete/${id}`),
}